package com.sxhalo.fsms.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sxhalo.fsms.domain.FactDeviceLinkageRule;
import com.sxhalo.fsms.mapper.FactDeviceLinkageRuleMapper;
import com.sxhalo.fsms.service.IFactDeviceLinkageRuleService;

@Service
public class FactDeviceLinkageRuleServiceImpl implements IFactDeviceLinkageRuleService {

	@Autowired
	private FactDeviceLinkageRuleMapper mapper;
	
	@Override
	public Integer insertSelective(FactDeviceLinkageRule record) {
		return mapper.insertSelective(record);
	}

	@Override
	public Integer updateByPrimaryKeySelective(FactDeviceLinkageRule record) {
		return mapper.updateByPrimaryKeySelective(record);
	}

	@Override
	public Integer deleteByPrimaryKey(Object key) {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public FactDeviceLinkageRule selectByPrimaryKey(Object key) {
		return mapper.selectByPrimaryKey(Integer.parseInt(key.toString()));
	}

	@Override
	public List<FactDeviceLinkageRule> findWhereList(String where, String order) {
		return mapper.findWhereList(where, order);
	}

	@Override
	public Integer getCount(String where) {
		return mapper.getCount(where);
	}

	@Override
	public List< FactDeviceLinkageRule> findPagerList(Integer start, Integer length, String where, String order) {
		return mapper.findPagerList(start, length, where, order);
	}

	@Override
	public int batchInsert(FactDeviceLinkageRule record, String ids) {
		return mapper.batchInsert(record,ids);
	}
}
